var MIN_COLUMNS = 4;
var MIN_ROWS = 4;
-var INACTIVE_GRID_OPACITY = 77;
-// This time needs to be less than IconGrid.EXTRA_SPACE_ANIMATION_TIME
-// to not clash with other animations
-var INACTIVE_GRID_OPACITY_ANIMATION_TIME = 240;
var FOLDER_SUBICON_FRACTION = .4;
var VIEWS_SWITCH_TIME = 400;
this._currentDialogDestroyId = 0;
});
}
- this._updateIconOpacities(isOpen);
this._displayingDialog = isOpen;
});
}
this.goToPage(itemPage);
}
- _updateIconOpacities(folderOpen) {
- for (let icon of this._items.values()) {
- let opacity;
- if (folderOpen && !icon.checked)
- opacity = INACTIVE_GRID_OPACITY;
- else
- opacity = 255;
-
- icon.ease({
- opacity,
- duration: INACTIVE_GRID_OPACITY_ANIMATION_TIME,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD,
- });
- }
- }
-
// Called before allocation to calculate dynamic spacing
adaptToSize(width, height) {
let box = new Clutter.ActorBox();